php forum
php mysql forum
php mysql smarty
 
Page 1 of 2 1 2 >
Topic Options
#115624 - 09/09/03 01:47 AM [6.6] Complete CSS of Public Template Files
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Name: Complete CSS of Public Template Files

Description: This allows you to use css for all the public template files.

Link: Click Here

Example CSS: 2 examples are included with the zip

Demo: check here

Requirement: UBB™ 6.6

Notes: These are of beta quality, a few buglets remain. smile
_________________________
- Allen wavey
- What Drives You?

Top
#115625 - 09/09/03 05:55 AM Re: [6.6] Complete CSS of Public Template Files
Charles Offline
Veteran

Registered: 10/22/00
Posts: 2637
Loc: London, UK
should I do a Kompact version or will do you it for ubbdev anyway?
_________________________
Do you believe in love at first sight,
or should I walk by again?

Top
#115626 - 09/09/03 06:53 AM Re: [6.6] Complete CSS of Public Template Files
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
great job allen, we'll use it in colorforums v6.6 smile
we need a kompact template for css if we want to use compact headers tipsy but I'll change everything in the .cgi files, so please tell me which regexes do you use to make compact headers not to use any .cgi file...

btw, what's infopop.css? is it the default ubb scheme?
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#115627 - 09/09/03 07:21 AM Re: [6.6] Complete CSS of Public Template Files
Charles Offline
Veteran

Registered: 10/22/00
Posts: 2637
Loc: London, UK
Quote:
quote:
Originally posted by LK:
[QB] but I'll change everything in the .cgi files, so please tell me which regexes do you use to make compact headers not to use any .cgi file...[QB]
I don't get your question LK ...
_________________________
Do you believe in love at first sight,
or should I walk by again?

Top
#115628 - 09/09/03 09:26 AM Re: [6.6] Complete CSS of Public Template Files
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
infopop.css is the default css for threads smile Those we are currently using might need to be updated slightly for use with these smile
_________________________
- Allen wavey
- What Drives You?

Top
#115629 - 09/09/03 05:51 PM Re: [6.6] Complete CSS of Public Template Files
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Once I have this installed, I may post some css stylesheets I have premade from Colorforums so some other people could use them.

Check out that title wink

Top
#115630 - 09/09/03 05:56 PM Re: [6.6] Complete CSS of Public Template Files
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Thanks Al smile

Note: except for the categoryheader class, all threads css files will work with this, so feel free to borrow from our extensive collection at www.threadsdev.com - add your categoryheader class in like you see in the example files here and yer ready to go smile
_________________________
- Allen wavey
- What Drives You?

Top
#115631 - 09/09/03 09:39 PM Re: [6.6] Complete CSS of Public Template Files
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Allen, do you want me to report any buglets I find?

Top
#115632 - 09/09/03 10:02 PM Re: [6.6] Complete CSS of Public Template Files
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
yes please... if you look at the test forum, any place you see red in the top 2 forums is where I haven't finished smile
_________________________
- Allen wavey
- What Drives You?

Top
#115633 - 09/09/03 10:26 PM Re: [6.6] Complete CSS of Public Template Files
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
ok, I have fixes for 2 of those already smile

Code:
# In public_forum_summary
find:

<a href="$ULTIMATEBB?category=$catarray->[2]"><b>$catarray->[1]</b></a>

replace with:

<a href="$ULTIMATEBB?category=$catarray->[2]"><font class="categoryheader"><b>$catarray->[1]</b></font></a>

find:

<b>$vars_wordlets{forum_column}</b>

replace with:

<font class="small"><b>$vars_wordlets{forum_column}</b></font>

# In ubb_lib_posting.cgi

find:

				$post_total_line = qq( <a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=recent_user_posts;u=$this_user_number" style="color: $vars_style{TextColor}; text-decoration: none;">$vars_wordlets{author_posts} <b>$user_profile[7]</b></a> );

replace with:

				$post_total_line = qq( <a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=recent_user_posts;u=$this_user_number"><font class="topiclink">$vars_wordlets{author_posts} <b>$user_profile[7]</b></font></a> );

find:

			$linkname = qq!<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=get_profile;u=$this_user_number" style="color: $vars_style{TextColor}; text-decoration: none;" target="_blank"><b>$show_public_name</b></a>!;

replace with:

			$linkname = qq!<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=get_profile;u=$this_user_number" target="_blank"><font class="topiclink"><b>$show_public_name</b></font></a>!;
my fixes so far

I'm about to work on fixing the post preview (the one that can be inline)

EDIT:
Also

Code:
# In public_pntf_summary.pl

find:

<td class="%%SPANCOLOR%%" colspan="$colspan" align="left">
<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=pntf$qstring">
<font class="small" color="%%SPANTCOLOR%%"><b>

replace with:

<td class="tdheader" colspan="$colspan" align="left">
<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=pntf$qstring">
<font class="small tdheader"><b>

Top
#115634 - 09/09/03 10:51 PM Re: [6.6] Complete CSS of Public Template Files
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
http://www.ubbdev.com/ubb/upload/00020028/fixesforthecsstemplates.txt

the list was getting kind of long, especially with the sub build_topic_review so I made a txt file

Top
#115635 - 09/09/03 11:43 PM Re: [6.6] Complete CSS of Public Template Files
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
The original post about public_forum_summary.pl: the text colors cascade down from the table tags above it... if it weren't true the category strips would be all red with red links tipsy To be able to adjust it differently from the link colrs of the rest of the site really needs to have something like:

a.categoryheader {
color: blah
backgroundcolor: bleh
}

tipsy

Thanks, I'll look through your fixes and add what I've broke and missed smile
_________________________
- Allen wavey
- What Drives You?

Top
#115636 - 09/09/03 11:47 PM Re: [6.6] Complete CSS of Public Template Files
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
it takes it from the table, yes... but since the font tag would be outside the links, it would take the a:hover etc properties instead of the categoryheader text

Top
#115637 - 09/10/03 12:25 AM Re: [6.6] Complete CSS of Public Template Files
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
don't confuse me with the facts tipsy
_________________________
- Allen wavey
- What Drives You?

Top
#115638 - 09/10/03 10:37 AM Re: [6.6] Complete CSS of Public Template Files
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Allen, one more bug you didn't notice cause no one posted there... your CSSing broke the active topics page tipsy I'm gonna look for the fix now

Top
#115639 - 09/10/03 10:42 AM Re: [6.6] Complete CSS of Public Template Files
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Code:
in public_daily_topics.pl

find:

		$thisaltcolor = ($thisaltcolor eq lighttable ? darktable} : lighttable );

replace with:

		$thisaltcolor = ($thisaltcolor eq lighttable ? darktable : lighttable );
that fixed it for me smile

Top
#115640 - 09/10/03 11:18 AM Re: [6.6] Complete CSS of Public Template Files
Gizmo Online   shocked

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
::sits back:: my little all's growing up ::sniff::...

If I wasn't at work I'd snag the files required and edit a 6.6 install and help! Probably do that tonight...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#115641 - 09/10/03 12:16 PM Re: [6.6] Complete CSS of Public Template Files
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Quote:
quote:
Originally posted by Gizzy:
::sits back:: my little all's growing up ::sniff::...

If I wasn't at work I'd snag the files required and edit a 6.6 install and help! Probably do that tonight...
This is my favorite part of hacking... making it look good. Once LK's calendar goes final, I'll post a css port of it. smile

Top
#115642 - 09/10/03 11:58 PM Re: [6.6] Complete CSS of Public Template Files
RandyM Offline
Spotlight Winner

Registered: 06/28/01
Posts: 2642
Loc: Southern California | Guitar o...
I have to agree, making the UBB look totally unique has always been my main goal.
_________________________
3 time Spotlight winner.
Believe The Lie

Top
#115643 - 09/11/03 11:42 AM Re: [6.6] Complete CSS of Public Template Files
Gizmo Online   shocked

Wizard

Registered: 01/10/00
Posts: 5354
Loc: Portland, OR, USA
Agreed, why bother looking like everyone else? I mean if you go and look at UGN you can clearly see that we hate the standard look, yet we love it at the same time...
_________________________
UBB.Dev - Where you too can render your UBB install completely useless...
UGN Security, Elite Web Gamers & VNC Web Design & Development President
UBB.Threads: My UBBSkins, UBB.Sitemaps

Top
#115644 - 09/13/03 02:32 PM Re: [6.6] Complete CSS of Public Template Files
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Hey Allen, a quick fix for times that requires little hacking...

In public_common.pl
FIND:
Code:
span.timestamp-1 {
	color: $vars_style{TimeColor};
}
TWICE

Delet them.

In Frost.css add:

Code:
span.timestamp-1 {
	color: blue;
}
now change that color to whatever you want the colors to be smile

There is also a problem in public_directory.pl

FIND:

Code:
	my $appn = $vars_display{'DirectorySortEnable'} eq "YES" ? qq~
<td nowrap="nowrap"><b>

$selarray[0]<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=directory$sr;p=$in{p};sorder=0"
class="text-decoration: underline">#</a>
|
$selarray[1]<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=directory$sr;p=$in{p};sorder=1"
class="text-decoration: underline">$vars_wordlets{displayed_name}</a>
|
$selarray[10]<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=directory$sr;p=$in{p};sorder=10"
class="text-decoration: underline">$vars_wordlets{member_status}</a>

</b></td>
<td nowrap="nowrap"><b>
$selarray[2]<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=directory$sr;p=$in{p};sorder=2"
class="text-decoration: underline">$vars_wordlets{author_posts_nocolon}</a>
</b></td>
~ : qq~
<td nowrap="nowrap"><b>
#, $vars_wordlets{displayed_name}, $vars_wordlets{member_status}
</b></td>
<td nowrap="nowrap"><b>
$vars_wordlets{author_posts_nocolon}
</b></td>
~;
	foreach my $num (@flds) {

		$appn .= $vars_display{'DirectorySortEnable'} eq "YES" ? qq~
<td nowrap="nowrap"><b>
$selarray[$num]<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=directory$sr;p=$in{p};sorder=$num"
class="text-decoration: underline">$statements{$num}</a>
</b></td>
~ : qq~
<td nowrap="nowrap"><b>
$statements{$num}
</b></td>
replace with:

Code:
	my $appn = $vars_display{'DirectorySortEnable'} eq "YES" ? qq~
<td nowrap="nowrap"><b>
$selarray[0]<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=directory$sr;p=$in{p};sorder=0"><font class="tdheader">#</font></a>
|
$selarray[1]<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=directory$sr;p=$in{p};sorder=1"><font class="tdheader">$vars_wordlets{displayed_name}</font></a>
|
$selarray[10]<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=directory$sr;p=$in{p};sorder=10"><font class="tdheader">$vars_wordlets{member_status}</font></a>
</b></td>
<td nowrap="nowrap"><b>
$selarray[2]<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=directory$sr;p=$in{p};sorder=2"><font class="tdheader">$vars_wordlets{author_posts_nocolon}</font></a>
</b></td>
~ : qq~
<td nowrap="nowrap"><b>
#, $vars_wordlets{displayed_name}, $vars_wordlets{member_status}
</b></td>
<td nowrap="nowrap"><b>
$vars_wordlets{author_posts_nocolon}
</b></td>
~;
	foreach my $num (@flds) {

		$appn .= $vars_display{'DirectorySortEnable'} eq "YES" ? qq~
<td nowrap="nowrap"><b>
$selarray[$num]<a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=directory$sr;p=$in{p};sorder=$num"><font class="tdheader">$statements{$num}</font></a>
</b></td>
~ : qq~
<td nowrap="nowrap"><b>
$statements{$num}
</b></td>
smile

Top
#115645 - 09/15/03 12:30 AM Re: [6.6] Complete CSS of Public Template Files
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
in that big section yer replacing, what's the major difference? smile
_________________________
- Allen wavey
- What Drives You?

Top
#115646 - 09/15/03 09:06 AM Re: [6.6] Complete CSS of Public Template Files
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
getting rid of the

Code:
class="text-decoration: underline"
and adding

Code:
<font class="tdheader">
within the links

Top
#115647 - 09/17/03 12:02 AM Re: [6.6] Complete CSS of Public Template Files
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Thanks, zip files updated with the fixes posted concerning the template files smile
_________________________
- Allen wavey
- What Drives You?

Top
#115648 - 09/17/03 12:06 AM Re: [6.6] Complete CSS of Public Template Files
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Hey Allen, any word on if these templates will work with 6.6.1?

Top
#115649 - 09/17/03 12:32 AM Re: [6.6] Complete CSS of Public Template Files
Charles Capps Offline
Admin Emeritus

Registered: 01/09/00
Posts: 5438
Loc: Lynnwood, WA
6.6.1 would be called 6.6.0.1 under the old numbering scheme. Just bugfixes - shouldn't be any problems.
_________________________
UBB.classic: Love it or hate it, it was mine.

Top
#115650 - 09/20/03 01:29 PM Re: [6.6] Complete CSS of Public Template Files
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
they work with 6.6.1 tipsy
_________________________
- Allen wavey
- What Drives You?

Top
#115651 - 09/20/03 02:20 PM Re: [6.6] Complete CSS of Public Template Files
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
Allen, one more bug.

On the search page, the footer (powered by, etc) it big

Top
#115652 - 09/20/03 02:26 PM Re: [6.6] Complete CSS of Public Template Files
LK Offline
Admin / Code Breaker

Registered: 03/24/01
Posts: 7396
yeah, same in the forum page... very odd
_________________________

My Hacks Page (will be back with UBB 7!)
UBBDev - We put the class into UBB.classic!

Top
#115653 - 09/21/03 06:45 PM Re: [6.6] Complete CSS of Public Template Files
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
I can't figure out the cause, but I figured out a fix. In your css files, in the copyright and small classes, use a definite font-size, not just "smaller". (didn't it used to be only copyright?)

Top
#115654 - 09/25/03 11:46 PM Re: [6.6] Complete CSS of Public Template Files
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
Not sure, just wanted to say your site is really looking sweet thumbsup
_________________________
- Allen wavey
- What Drives You?

Top
#115655 - 09/25/03 11:57 PM Re: [6.6] Complete CSS of Public Template Files
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
thanks, I've been tweaking every since I visited threadsdev smile They have a lot of nice tips for css

Top
#115656 - 09/29/03 04:39 PM Re: [6.6] Complete CSS of Public Template Files
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA

Top
#115657 - 09/29/03 04:52 PM Re: [6.6] Complete CSS of Public Template Files
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
here's the fix
find:
Code:
	if($swap == 2) { $swap = 1; } else { $swap = 2; }

	my $switch = "AltColumnColor" . $swap;

return <<THISFIELD;

<!-- Start $title -->
<tr class="$vars_style{$switch}">
replace with:
Code:
	if($swap eq 'dark') { $swap = 'light'; } else { $swap = 'dark'; }

	my $switch = $swap . "table";

return <<THISFIELD;

<!-- Start $title -->
<tr class="$switch">

Top
#115658 - 10/04/03 09:44 PM Re: [6.6] Complete CSS of Public Template Files
Ian Spence Offline
Master Hacker

Registered: 01/25/03
Posts: 3765
Loc: Saint Johns, PA
bumping so Allen sees this

Top
#115659 - 10/17/03 01:25 AM Re: [6.6] Complete CSS of Public Template Files
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
danke smile
_________________________
- Allen wavey
- What Drives You?

Top
Page 1 of 2 1 2 >



Moderator:  Gizmo, tackaberry 
Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks